<template>
  <!-- 映射的id -->
  <div id="sub-container"></div>
</template>

<script lang="ts" setup>
import { start } from 'qiankun'
// 配置的qiankun信息
import { registerApps } from '@/qiankun-config/main'

import { onMounted } from 'vue'

onMounted(() => {
  if (!window.qiankunStarted) {
    window.qiankunStarted = true
    registerApps()
    // 开启qiankun
    start({
      // sandbox: {
      //   // sandbox: { strictStyleIsolation: true } // 严格隔离
      //   // experimentalStyleIsolation: true // 样式隔离
      // }
    })
  }
})
</script>
